const product = {
  name: "牙膏",
  orderDetail: {
    createTime: 1632996519781,
  },
  toJSON() {
    return {
      name: "云牧",
    };
  },
};

console.log(JSON.stringify(product)); // '{"name":"云牧"}'
